App({
    onLaunch() {
        // this.checkAudio()
    },

  globalData: {
    userInfo: null,
    user: {
      username: "", password: "", id: ""
    },
    components:[],
    token: ""
  },

  
    checkAudio() {
        wx.getSystemInfo({
            success: (res) => {
                if (res.platform !== 'devtools') {
                    wx.getNetworkType({
                        success: (res) => {
                            if (res.networkType === 'wifi') {
                                this.autoPlay()
                            }
                        },
                    })
                }
            },
        })
    },
   
})
